.el-table__header th {
  font-weight: bold;
  color: #505050;
  background: #fafafa;
}

.el-table .el-table__header th {
  background: var(--el-fill-color-light) !important;
}

.el-table__empty-text {
  font-size: 12px;
}

.el-breadcrumb__inner.is-link:hover {
  color: #007cff !important;
}

.el-breadcrumb__inner.is-link:hover {
  color: #007cff;
}

.el-table__body,
.el-table__footer,
.el-table__header {
  width: 100% !important;
}

.el-sub-menu .el-sub-menu__title,
.el-menu-item {
  height: 48px !important;
}

.el-menu .el-menu-item {
  font-size: 14px;
}

.el-menu .el-sub-menu__title {
  font-size: 14px;
}

.el-menu .el-menu .el-menu-item {
  font-size: 12px;
}

// el-select 选择框
.el-select {
  border-radius: 2px;

  .el-select__wrapper {
    height: 28px;
    min-height: 28px;
    border-radius: 2px;
    padding: 0 12px;
    font-size: 12px;
  }
}

.el-select .el-input .el-input__wrapper {
  height: 26px;
  border-radius: 2px;
}

.el-select-dropdown__item,
.el-picker-panel__shortcut,
.el-pagination span:not([class*='suffix']),
.el-pager li {
  font-size: 12px !important;
}

.el-select .el-input.is-focus .el-input__wrapper {
  box-shadow: 0 0 0 1px #007cff inset !important;
}

.el-input .el-input__inner,
.el-select .el-input__inner {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

// el-input 输入框
.el-input .el-input__wrapper {
  height: 26px;
  border-radius: 2px;
}

.el-table td.el-table__cell .el-input .el-input__wrapper {
  height: 28px;
}

.el-input .el-input__wrapper.is-focus {
  box-shadow: 0 0 0 1px #007cff inset;
}

.el-textarea .el-textarea__inner:focus {
  box-shadow: 0 0 0 1px #007cff inset;
}

.el-textarea .el-textarea__inner {
  font-size: 12px !important;
}

// 搜索框
.el-input-group--prepend {
  height: 28px;
}

.el-input-group--prepend .el-input__wrapper {
  border-radius: 2px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.el-input-group--prepend .el-input-group__append {
  box-shadow: none;
  border-radius: 0 !important;
  border-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;

}

.el-input-group--prepend .el-input-group__append i {
  color: #fff;
}

.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__wrapper {
  box-shadow: 0 0 0 1px #007cff inset !important;
}

.el-input-group--append .el-input-group__append {
  border-radius: 0 !important;
  border-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  height: 28px;
  padding: 0 10px;
}

.el-input-group--append .el-input-group__append i {
  color: #fff;
}

.el-input-group--append .el-button--default {
  height: 28px;
}

.el-input-group--append .el-input__wrapper {
  height: 26px;
  border-radius: 0;
}

.el-range-editor--large.el-input__wrapper {
  height: 30px;
  border-radius: 2px;
}

.el-date-editor .el-range__icon {
  font-size: 12px;
}

.el-date-editor .el-range-input {
  font-size: 12px !important;
}

.el-date-range-picker__header div {
  font-size: 14px !important;
}

.el-date-editor .el-input__wrapper {
  height: 28px;
  border-radius: 2px;
}

.el-date-editor.is-active {
  box-shadow: 0 0 0 1px #007cff inset;
}

.el-date-editor.is-active:hover {
  box-shadow: 0 0 0 1px #007cff inset;
}

.el-date-editor.el-input__wrapper {
  border-radius: 2px;
}

.el-date-editor .el-range__icon {
  margin-right: 5px;
}

.el-range-editor.is-active:hover {
  box-shadow: 0 0 0 1px #007cff inset !important;
}

.el-range-editor.is-active {
  box-shadow: 0 0 0 1px #007cff inset !important;
}

.el-upload--picture-card:hover {
  border-color: #007cff;
}

.el-select-dropdown__item {
  padding: 0 10px;
}

.el-select-dropdown__item.selected {
  color: #007cff !important;
}

.el-date-table td:hover {
  color: #007cff !important;
}

.el-date-table td.end-date .el-date-table-cell__text,
.el-date-table td.start-date .el-date-table-cell__text {
  background-color: #007cff !important;
}

.el-picker-panel__shortcut:hover {
  color: #007cff;
}

.el-dialog .el-dialog__header {
  padding: 10px;
  margin: 0;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.el-dialog .el-dialog__headerbtn {
  position: static;
  width: 20px;
  height: 30px;
  padding-top: 3px;
}

.el-dialog .el-dialog__title {
  font-size: 14px;
  font-weight: bold;
}

.el-dialog .el-dialog__body {
  padding: 12px;
  color: #505050;
}

.el-dialog .el-dialog__footer .el-button {
  padding: 8px 10px;
  border-radius: 2px;
}

.el-dialog .el-dialog__footer .el-button--primary {
  background-color: #007cff !important;
  border-color: #007cff !important;
}

.el-dialog .el-dialog__footer .el-button--primary:hover {
  background-color: rgba(#007cff, 0.8) !important;
  border-color: rgba(#007cff, 0) !important;
}

.el-dialog .el-dialog__footer .el-button--primary.is-disabled {
  background-color: rgba(#007cff, 0.8) !important;
  border-color: rgba(#007cff, 0) !important;
}

.el-dialog .el-dialog__footer .el-button--cancel {
  color: #ffffff;
  border-color: #f56c6c !important;
  background-color: #f56c6c !important;
}

.el-dialog .el-dialog__headerbtn:hover {
  .el-dialog__close {
    color: #007cff;
  }
}

.el-checkbox__input.is-indeterminate .el-checkbox__inner {
  border-color: #007cff !important;
  background-color: #007cff !important;
}

.el-table__inner-wrapper {
  .is-checked,
  .is-indeterminate {
    .el-checkbox__inner {
      border-color: #007cff !important;
      background-color: #007cff !important;
    }
  }

  .is-checked {
    .el-checkbox__inner::after {
      box-sizing: content-box;
      content: '';
      border: 2px solid var(--el-checkbox-checked-icon-color);
      border-color: #fff !important;
      border-left: 0;
      border-top: 0;
      height: 7px;
      left: 4px;
      position: absolute;
      top: 0;
      width: 3px;
      transition: transform 0.15s ease-in 50ms;
      transform-origin: center;
    }
  }

  .is-indeterminate {
    .el-checkbox__inner::before {
      content: '';
      position: absolute;
      display: block;
      background-color: var(--el-checkbox-checked-icon-color);
      height: 2px;
      transform: scale(0.8);
      left: 0;
      right: 0;
      top: 5px;
    }
  }
}

.el-checkbox__inner:hover {
  border-color: #007cff !important;
}

.el-message-box__title {
  font-size: 14px;
}

.el-message-box__message p {
  font-size: 12px;
}
.el-button {
  border-radius: 2px;
}
.el-button > span {
  font-size: 12px;
}

.el-message-box__btns .el-button--primary {
  border-color: #007cff;
  background-color: #007cff;
}

.el-message-box__btns .el-button--primary:hover {
  border-color: rgba(#007cff, 0);
  background-color: rgba(#007cff, 0.8);
}

.el-message-box .el-message-box__headerbtn:hover {
  .el-message-box__close {
    color: #007cff;
  }
}

.el-tabs__nav {
  .is-active {
    color: #007cff !important;
  }

  .el-tabs__item:hover {
    color: #007cff;
  }

  .el-tabs__active-bar {
    background-color: #007cff;
  }
}

.el-tabs__nav-wrap::after {
  height: 1px !important;
}

.el-checkbox__input.is-checked .el-checkbox__inner {
  border-color: #007cff !important;
  background-color: #007cff !important;
}

.el-checkbox__input.is-checked .el-checkbox__inner::after {
  box-sizing: content-box;
  content: '';
  border: 2px solid var(--el-checkbox-checked-icon-color);
  border-left: 0;
  border-top: 0;
  height: 7px;
  left: 4px;
  position: absolute;
  top: 1px;
  width: 3px;
  transition: transform 0.15s ease-in 50ms;
  transform-origin: center;
}

.el-checkbox__input.is-checked + .el-checkbox__label {
  color: #007cff !important;
}
.el-checkbox__label {
 font-size: 12px;
}
.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after {
  border-color: #ffffff !important;
}
.el-table td.el-table__cell .el-input-group__prepend{
  padding: 0 10px !important;
}
.el-upload-list--picture-card .el-upload-list__item,
.el-upload--picture-card {
  border-radius: 2px !important;
}

.el-upload-list--picture-card .el-upload {
  width: 80px;
  height: 80px;
}

.el-upload-list--picture-card .el-upload-list__item {
  width: 80px;
  height: 80px;
}

.demo-date-picker {
  display: flex;
  width: 100%;
  padding: 0;
  flex-wrap: wrap;

  .block {
    padding: 30px 0;
    text-align: center;
    border-right: solid 1px var(--el-border-color);
    flex: 1;
  }

  .block:last-child {
    border-right: none;
  }

  .demonstration {
    display: block;
    color: var(--el-text-color-secondary);
    font-size: 14px;
    margin-bottom: 20px;
  }
}

.el-loading-mask .el-loading-spinner .path {
  stroke: #007cff;
}

.el-loading-spinner .el-loading-text {
  color: #007cff !important;
}

.el-select-v2__wrapper {
  border-radius: 2px;
}

.el-select-v2__wrapper.is-focused {
  border-color: #007cff;
}

.el-switch.is-checked .el-switch__core {
  background-color: #007cff !important;
}

.el-switch__label.is-active {
  color: #007cff !important;
}
.el-radio {
  margin-right: 20px;
}
.el-radio__input.is-checked .el-radio__inner {
  border-color: #007cff !important;
  background: #007cff !important;
}

.el-radio__input.is-checked + .el-radio__label {
  color: #007cff !important;
}

.el-pagination .el-input__inner {
  text-overflow: inherit !important;
  font-size: 12px !important;
}

.el-pagination .el-select .el-input {
  width: 100px !important;
}

.el-pagination .el-input .el-input__wrapper {
  height: 26px !important;
}

.el-pagination button {
  height: 28px !important;
}

.el-pagination .btn-prev:hover {
  i {
    color: #007cff !important;
  }
}

.el-pagination .btn-next:hover {
  i {
    color: #007cff !important;
  }
}

.el-pagination .el-pager li {
  height: 28px !important;
}

.el-pagination .el-pager li:hover {
  color: #007cff !important;
}

.el-pagination.is-background .el-pager li:not(.is-disabled).is-active {
  background-color: #007cff !important;
}

.el-pagination.is-background .el-pager li:not(.is-disabled).is-active:hover {
  color: #fff !important;
}

.el-pagination__editor {
  height: 28px !important;
}

.el-pagination__total,
.el-pagination__sizes {
  margin-right: 8px !important;
}

.el-pagination__jump {
  margin-left: 8px !important;
}

.el-message--warning {
  border-color: #ffe9c3 !important;
  background-color: #fff7e9 !important;
  z-index: 9999 !important;
}

.el-message .el-message-icon--warning,
.el-message--warning .el-message__content {
  color: #e69103 !important;
}

.el-message--success {
  border-color: #afffff !important;
  background-color: #e6ffff !important;
}

.el-message .el-message-icon--success,
.el-message--success .el-message__content {
  color: #00c0c0 !important;
}

.el-message--error {
  border-color: #f0d1d1 !important;
  background-color: #fdf0f0 !important;
}

.el-message {
  padding: 12px !important;

  .el-message__closeBtn {
    right: 6px !important;
  }

  .el-message__icon {
    margin-right: 4px !important;
  }
}

.el-message .el-message-icon--error,
.el-message--error .el-message__content {
  color: #f56c6c !important;
}

.el-message-box__status.el-message-box-icon--warning {
  color: #e69103 !important;
}

.el-notification .el-notification--success {
  color: #00c0c0 !important;
}

.el-form-item.is-error .el-input__wrapper {
  box-shadow: 0 0 0 1px #f56c6c inset !important;
}

.el-form-item__error {
  color: #f56c6c !important;
}

.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
  background-color: #007cff !important;
  color: #fff;
}
.el-cascader {
  width: 100%;
}

.el-cascader-node {
  // padding: 0 !important;
  &.is-active {
    font-weight: normal !important;
  }
}

.el-cascader-node__label {
  font-size: 12px !important;
  padding: 0 30px !important;
}

.el-cascader__suggestion-item.is-checked {
  font-weight: normal !important;
}

.el-cascader__suggestion-item > span {
  font-size: 12px;
}

.el-cascader__empty-text {
  font-size: 12px !important;
}

.el-cascader-menu__empty-text {
  font-size: 12px;
}

.el-loading-mask {
  background-color: #fafafad2 !important;
}

// input框前置元素
.el-input-group__prepend {
  border-radius: 2px !important;
}

// 文件上传
.el-upload-dragger,
.el-upload--picture-card {
  padding: 10px 0;
  border: 1px solid rgba($color: #000, $alpha: 0.1) !important;
  border-radius: 2px !important;
}

// 文本域
.el-textarea__inner {
  border-radius: 2px !important;
}

// 链接按钮
.el-button--primary.is-link {
  color: #007cff;
  margin: 0;

  &:hover {
    color: rgba(#007cff, 0.5);
  }
}

.el-button--success.is-link {
  color: #00c0c0;
  margin: 0;

  &:hover {
    color: rgba(#00c0c0, 0.5);
  }
}

.el-button--warning.is-link {
  color: #e69103;
  margin: 0;

  &:hover {
    color: rgba(#e69103, 0.5);
  }
}

:deep(.el-select__wrapper) {
  height: 28px;
  min-height: 28px !important;
  border-radius: 2px;
  font-size: 12px;
  color: #a8abb2;
}

// 日期范围选择器
// .el-input__wrapper {
//   height: 26px !important;
// }

// tag标签
.el-tag.el-tag--success {
  color: #00c0c0;
  background-color: rgba(#00c0c0, 0.1);
  border-color: rgba(#00c0c0, 0.1);
}

// 消息弹框
.el-message-box {
  padding: 0 !important;

  .el-message-box__header {
    padding: 10px 10px 10px 16px !important;

    .el-message-box__title {
      span {
        font-size: 14px;
      }
    }
  }

  .el-message-box__content {
    padding: 22px 32px 32px 32px !important;
    height: auto !important;

    .el-message-box__container {
      display: flex;
      justify-content: center;
      gap: 8px;

      .el-icon {
        font-size: 44px;
      }

      .el-message-box__message {
        p {
          font-size: 18px;
        }
      }
    }
  }

  .el-message-box__btns {
    flex-direction: row-reverse;
    justify-content: flex-start;
    gap: 10px;
    padding: 0 32px 26px 32px !important;

    button.el-button {
      margin: 0;
    }

    .el-button--default {
      border-radius: 2px;
      padding: 0 16px;
    }

    .el-button--primary {
      &:hover {
        background-color: rgba($primaryColor, 0.6);
        border-color: rgba($primaryColor, 0);
      }
    }
  }
}

// 文本域
:deep(.el-textarea__inner) {
  resize: none;
}

// 弹窗
.el-dialog {
  padding: 0 !important;

  header.el-dialog__header {
    padding: 10px 10px 10px 16px !important;
  }

  div.el-dialog__body {
    padding: 0 !important;
    height: auto !important;
  }

  footer.el-dialog__footer {
    padding: 0 !important;
  }
}

// 抽屉
.el-drawer {
  header.el-drawer__header {
    margin: 0;
    padding: 20px;
  }

  div.el-drawer__body {
    padding: 0 20px;
  }

  div.el-drawer__footer {
    padding: 20px;
  }
}

.el-tag {
  --el-tag-border-radius: 0px;
}
// 消息弹出框
.el-message {
  .el-badge {
    display: none;
  }
}
.el-form-item--default {
  .el-form-item__content {
    font-size: 12px !important;
  }
  .el-form-item__label {
    font-size: 12px !important;
  }
}

// 单选框
.el-radio__input.is-disabled {
  span {
    background: #f5f7fa !important;
    border-color: #e4e7ed !important;
  }

  span.el-radio__label {
    span {
      color: #999 !important;
    }
  }
}

.el-radio.is-disabled.is-checked {
  span.el-radio__label {
    span {
      color: #999 !important;
    }
  }
}
